package net.hn.hnms.biz.safety.location.controller;

import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import net.hn.hnms.biz.safety.location.service.LocationService;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.common.satoken.config.AutoSetMineCode;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Author: PanSX
 * Date: 2022/8/11 16:04
 */
@RestController
@RequestMapping("riskMonitor/location/current")
@Api(value = "人员定位控制器", tags = {"人员定位历史"},hidden = true)
@RequiredArgsConstructor
public class LocationFeginController {
    private final LocationService locationService;
    @GetMapping("getUsersByStations")
    @AutoSetMineCode
    public R<List<String>> getUserIds(@RequestBody List<String> stations,String mineCode){
        return R.ok(locationService.getUserIds(stations,mineCode));
    }
}
